from buxi3.Base import Base
from selenium.webdriver.common.by import By
class Page2(Base):
    huanyihuanbtn_loc=(By.XPATH,'//*[@id="hotsearch-refresh-btn"]/span')
    def huanyihuanbtn(self):
        self.click(self.huanyihuanbtn_loc)
    def luoji2_baidu(self):
        self.goto("https://www.baidu.com/")
        self.huanyihuanbtn()

